How to validate data entered in a control.





In the Form Design view, use the 'Validate Rule' property box in the property sheet of the form to validate data entered in a control.

    1) If the Database window is not activated, activate the Database window.
    2) Choose the 'Forms' tab in the Database window.
    < Forms tab >
    3) Select the desired form from the list box. (The selected form is highlighted.)
    4) Choose the 'Design' button. (The selected form appears in Design view, and the floating Toolbox appears.)
    5) Click on the desired control to validate data. (Handles appear around the control.)
    6) Select the 'View' menu and select 'Properties'.
    7) Choose the 'Data' tab.
    8) Click on the 'Validate Rule' box. (The 'Build' button appears.)
    9) Enter the desired expression for validating text.
    EXAMPLE: > =Date( )
    (where the selected control has the data type of Date and you are prevented from entering a date prior to the current date).
    10) (Optional) Do the following to add a message box when incorrect date has been entered.

      a) Click on the 'Validate Text' box.
      b) Enter the desired message to appear when you entered the incorrect date.

    11) Select the 'File' menu and select 'Save' to save the form.


Knowledge-Pak Desktop Suite (TM) Edition 5
Copyright (c) 1994-1997 by ServiceWare Inc. Subject to the terms set forth in the end-user license agreement. All rights reserved.



2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.